import { defineConfig } from "vitepress"
import components from "../components"

export default defineConfig({
  title: "mala-ui",
  description: "mala-ui：一个由vue编写的组件库",
  lang: "zh-CN",
  appearance: true,
  base: "/mala-ui/",
  lastUpdated: true,
  themeConfig: {
    siteTitle: "mala-ui",
    logo: "/favicon.ico",
    // 导航栏
    nav: [
      { text: "指南", link: "/guide/关于我们" },
      { text: "组件", link: "/components/button" },
      {
        text: "相关链接",
        items: [{ text: "gitee仓库", link: "https://gitee.com/ledanger/mala-ui" }]
      }
    ],
    // 侧边栏
    sidebar: {
      "/guide": [
        {
          text: "概述",
          items: [
            {
              text: "关于我们",
              link: "/guide/关于我们",
            }
          ]
        },
        {
          text: "快速开始",
          items: [
            {
              text: "快速上手",
              link: "/guide/快速开始"
            }
          ]
        }
      ],
      "/components": components
    },
    // 友情链接
    socialLinks: [{ icon: "github", link: "https://github.com/liliangCS" }],
    algolia: {
      apiKey: "",
      indexName: "",
      searchParameters: {
        faeFilters: ["tags: guide, api"]
      }
    }
  }
})
